package com.example.demo4_sport.controller;


import com.example.demo4_sport.service.IMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MenuController {

    @Autowired
    private IMenuService menuService;

    @GetMapping("/menus")
    public String getAllMenus(){
        System.out.println(menuService.getAllMenus());
        return menuService.getAllMenus();
    }
}
